<?php

namespace app\admin\controller\circle;

use app\common\controller\Backend;

/**
 * 文章管理
 *
 * @icon fa fa-circle-o
 */
class Fen extends Backend
{

    /**
     * Article模型对象
     * @var \app\admin\model\circle\Fen
     */
    protected $model = null;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = new \app\admin\model\circle\Fen;
        //获取用户列表
        $userModel = new \app\common\model\User();
        $userList = $userModel->order("id asc")->field('nickname,id')->select();
        $this->assign("userList",$userList);

        $userarr = $userModel->order("id asc")->column('nickname', 'id');
        $this->assignconfig("userarr",$userarr);
        $this->view->assign("userarr", $userarr);
    }

}
